package com.hmxx.myblogproject.controller;

import com.hmxx.myblogproject.service.MyBlogBlogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @description:
 * @Author: {27106}
 * @Date: {2021/11/18 16:50}
 */
@RestController
@RequestMapping("/blog")
public class MyBlogBlogController {
    @Resource
    private MyBlogBlogService service;


    @PostMapping("/setBlog")
    public Object setBlog(@RequestBody String json){
        return service.setBlog(json);
    }

    @PostMapping("/updateBlog")
    public Object updateBlog(@RequestBody String json){
        return service.updateBlog(json);
    }
}
